import 'package:flutter/material.dart';

class HYImageDetailPage extends StatelessWidget {
  final String _imageUrl;

  HYImageDetailPage(this._imageUrl);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: Center(
          child: GestureDetector(
        child: Hero(tag: _imageUrl, child: Image.network(_imageUrl)),
        onTap: () {
          Navigator.of(context).pop();
        },
      )),
    );
  }
}
